<?php

include("../inc/Function.php");
if($_SESSION['a']['alevel']!=5 && $power['hycz']!=1){
	echo "<script>alert('权限不足');window.location.href='index.php';</script>";exit;
}
$psize = 15;
$page = isset($_GET['page'])?$_GET['page']:1;
$uid = isset($_GET['uid'])?$_GET['uid']:0;
$uname = isset($_GET['uname'])?$_GET['uname']:"";
$stime = isset($_GET['stime'])?$_GET['stime']:"";
$etime = isset($_GET['etime'])?$_GET['etime']:"";
$type1 = isset($_GET['type1'])?$_GET['type1']:0;
$allcash = allczcash($uid,$uname,$stime,$etime,$type1);

$list = cashlistcz($page,$psize,$uid,$uname,$stime,$etime,$type1);
$num = cashlistnumcz($uid,$uname,$stime,$etime,$type1);
if($list){
    $msg = 1;
}else{
    $msg = 0;
}
$page1 = page1($num,$psize,$page,$_SERVER['PHP_SELF']."?uid=$uid&uname=$uname&stime=$stime&etime=$etime&type1=$type1");
$tpl->assign('page',$page1);
$tpl->assign('uname',$uname);
$tpl->assign('allcash',$allcash);
$tpl->assign('czarr',$czarr);

$tpl->assign('stime',$stime);
$tpl->assign('etime',$etime);
$tpl->assign('type1',$type1);
$tpl->assign('msg',$msg);
$tpl->assign('clist',$list);
$tpl->show('cashcz');
?>